package ink.onei.shopping.domain;

import java.io.Serial;
import java.math.BigDecimal;
import java.util.List;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import ink.onei.common.annotation.Excel;
import ink.onei.common.core.domain.BaseEntity;
import org.apache.ibatis.type.Alias;

/**
 * 商品规格对象 goods_detail
 * 
 * @author nekotako
 * @date 2024-02-07
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Alias("Detail")
public class Detail extends BaseEntity {
    @Serial
    private static final long serialVersionUID = 1L;

    // 规格编号
    private Long detailId;

    // 商品编号
    @Excel(name = "商品编号")
    private Long goodsId;

    // 规格名称
    @Excel(name = "规格名称")
    private String detailName;

    // 规格数量
    @Excel(name = "规格数量")
    private Integer detailNum;

    // 规格价格
    @Excel(name = "规格价格")
    private Double detailPrice;

    // 删除标记
    private Integer delFlag;

    // 商品信息
    private Goods goods;

    // 评论信息
    private List<Comment> commentList;
}
